home *** CD-ROM | disk | FTP | other *** search
- // Author : Andy Earp(NetSupport Ltd)
- // File name : Clientlist.scp
- // Date created : 17/08/00
- // Description :
- // Short script that will prompt the user for input and then connect to the Client machine and if the connection is established
- // it will then open a view window of the Client machine.
-
- //Main description at the start of the script
-
- Print "***********************************************************"
- Print " "
- Print " This is a sample script that will prompt the user to"
- Print " enter the name of the Client they wish to connect."
- Print " The script will then go on to open a view window "
- Print " of the Client machine."
- Print " "
- Print "To end the script close down the view window."
- Wait (7)
-
- // Sets the transport to connect over, this example is using the TCP/IP protocol.
- SetTransport(T_TCPIP)
-
- // Declares Variable used
- Dim Client
-
- // Prompts the user to input the name of the Client machine they which to connect to.
- If Input ("Please enter the name of the Client you wish to connect to", Client) = False then
- Print " "
- Print " This script will now stop!"
- Print "******************************"
- Stop
- Else
- // Performs an error check, if the connection to the Client is good it will open the window but if the connection is unsuccesful
- If Connect(Client) = True then
- Print " "
- Print "A view window of the ", Client, " will now be"
- Print "opened"
- Wait (4)
- SetWindowMode (2)
- Watch()
- WaitEndView()
- Else
- Print " "
- Print "You were unable to connect to ", Client
- Print "***********************************************"
- Endif
-
- // Disconnects from the Client machine
- Disconnect(Client)
- Print " "
- Print "The script has now disconnected from ", Client
-
- Print "*********************************************************"
- Print " "
- Print "To edit or view the contents of this"
- Print "script right mouse button click"
- Print "on the Script icon and select Edit"
-
- Endif
-
-
- //Copyright ⌐ 2000